﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.ProductionManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.ProductionManagement.ProdBatchMaterialRecordVMs
{
    public partial class ProdBatchMaterialRecordBatchVM : BaseBatchVM<ProductionBatchMaterialRecord, ProdBatchMaterialRecord_BatchEdit>
    {
        public ProdBatchMaterialRecordBatchVM()
        {
            ListVM = new ProdBatchMaterialRecordListVM();
            LinkedVM = new ProdBatchMaterialRecord_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class ProdBatchMaterialRecord_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._ProdBatchMaterialRecord._MaterialCode")]
        public string MaterialCode { get; set; }
        [Display(Name = "_Model._ProdBatchMaterialRecord._Barcode")]
        public string Barcode { get; set; }
        [Display(Name = "_Model._ProdBatchMaterialRecord._Wo")]
        public string Wo { get; set; }
        [Display(Name = "_Model._ProdBatchMaterialRecord._Qty")]
        public decimal? Qty { get; set; }
        [Display(Name = "_Model._ProdBatchMaterialRecord._UsedQty")]
        public decimal? UsedQty { get; set; }
        [Display(Name = "_Model._ProdBatchMaterialRecord._LineId")]
        public long? LineId { get; set; }
        [Display(Name = "_Model._ProdBatchMaterialRecord._LineCode")]
        public string LineCode { get; set; }
        [Display(Name = "_Model._ProdBatchMaterialRecord._OpId")]
        public long? OpId { get; set; }
        [Display(Name = "_Model._ProdBatchMaterialRecord._OpCode")]
        public string OpCode { get; set; }
        [Display(Name = "_Model._ProdBatchMaterialRecord._FeedingTime")]
        public DateTime? FeedingTime { get; set; }
        [Display(Name = "_Model._ProdBatchMaterialRecord._ScanOpId")]
        public long? ScanOpId { get; set; }
        [Display(Name = "_Model._ProdBatchMaterialRecord._ScanOpCode")]
        public string ScanOpCode { get; set; }
        [Display(Name = "_Model._ProdBatchMaterialRecord._FeedingBy")]
        public string FeedingBy { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}